package com.funcity.events
{
	import flash.events.Event;
	
	public final class CacheEvent extends Event
	{
		public static var CACHE_GET:String = "CACHE_GET";//得到缓存
		public static var CACHE_CANCEL:String = "CACHE_CANCEL";//取消获取缓存
		
		private var _data:Object;
		
		public function CacheEvent(url:String, data:Object)
		{
			super(url, false, false);
			
			_data = data;
		}
		
		public function get data():Object
		{
			return _data;
		}
		
		public override function clone():Event
		{
			return new CacheEvent(type, _data);
		}
	}
}